package com.sora.sora.common.constant;

import lombok.Getter;

@Getter
public enum ResultCode {

    OK(200,"请求成功"),

    CREATED(201,"已创建"),

    ACCEPTED(202,"已接受请求，但未处理完成"),

    NOCONTENT(2004,"无内容"),

    UNAUTHORIAZED(401,"未身份认证"),

    FORBIDDEN(403,"没有权限访问"),

    VALIDATE_FAILED(1001,"参数校验失败"),

    FAILED(1002,"操作失败"),

    ERROR(1003,"未知错误，请联系管理员");

    private int status;
    private String msg;

    ResultCode(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }
}
